//
//  PopularData.m
//  Beauty
//
//  Created by Gollum on 16/09/23
//  Copyright (c) Snow. All rights reserved.
//

#import "PopularData.h"
#import "PopularDetailData.h"

@implementation PopularData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [PopularDetailData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{

    [super setValue:value forKey:key];
    NSMutableArray *myData = [NSMutableArray array];
    NSArray *valueArray = value;
    if ([key isEqualToString:@"data"]) {
        for (NSDictionary *dic in valueArray) {
            PopularDetailData *data = [PopularDetailData modelWithDic:dic];
            [myData addObject:data];
        }
        _data = myData;
    }



}
@end
